package com.framework.buss.ai.controller;

import com.framework.buss.ai.params.DiseaseTypeParam;
import com.framework.buss.ai.service.IAssessmentService;
import com.framework.buss.ai.vo.AssessmentVO;
import com.framework.common.domain.ResultData;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author zhangzhg
 */
@RestController
@RequestMapping("/assessment")
@Api(value = "assessment", tags = "病害类型")
public class AssessmentController {
    @Autowired
    private IAssessmentService assessmentService;

    @ApiOperation("快速评估配置的问题列表")
    @GetMapping("list")
    public ResultData list(DiseaseTypeParam param) {
        List<AssessmentVO> list = assessmentService.list(param);
        return ResultData.data(list);
    }
}
